

<%@ page import="monocaffe.server.NssUser" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'nssUser.label', default: 'NssUser')}" />
        <title><g:message code="default.create.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.create.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${nssUserInstance}">
            <div class="errors">
                <g:renderErrors bean="${nssUserInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="realname"><g:message code="nssUser.realname.label" default="Realname" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: nssUserInstance, field: 'realname', 'errors')}">
                                    <g:textField name="realname" maxlength="32" value="${nssUserInstance?.realname}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="password"><g:message code="nssUser.password.label" default="Password" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: nssUserInstance, field: 'password', 'errors')}">
                                    <g:passwordField name="password" maxlength="40" value="${nssUserInstance?.password}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="shell"><g:message code="nssUser.shell.label" default="Shell" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: nssUserInstance, field: 'shell', 'errors')}">
                                    <g:textField name="shell" maxlength="20" value="${nssUserInstance?.shell}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="status"><g:message code="nssUser.status.label" default="Status" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: nssUserInstance, field: 'status', 'errors')}">
                                    <g:textField name="status" maxlength="1" value="${nssUserInstance?.status}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="homedir"><g:message code="nssUser.homedir.label" default="Homedir" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: nssUserInstance, field: 'homedir', 'errors')}">
                                    <g:textField name="homedir" maxlength="32" value="${nssUserInstance?.homedir}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="lastchange"><g:message code="nssUser.lastchange.label" default="Lastchange" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: nssUserInstance, field: 'lastchange', 'errors')}">
                                    <g:textField name="lastchange" maxlength="50" value="${nssUserInstance?.lastchange}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="email"><g:message code="nssUser.email.label" default="Email" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: nssUserInstance, field: 'email', 'errors')}">
                                    <g:textField name="email" value="${nssUserInstance?.email}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="expire"><g:message code="nssUser.expire.label" default="Expire" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: nssUserInstance, field: 'expire', 'errors')}">
                                    <g:textField name="expire" value="${fieldValue(bean: nssUserInstance, field: 'expire')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="gid"><g:message code="nssUser.gid.label" default="Gid" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: nssUserInstance, field: 'gid', 'errors')}">
                                    <g:textField name="gid" value="${fieldValue(bean: nssUserInstance, field: 'gid')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="inact"><g:message code="nssUser.inact.label" default="Inact" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: nssUserInstance, field: 'inact', 'errors')}">
                                    <g:textField name="inact" value="${fieldValue(bean: nssUserInstance, field: 'inact')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="max"><g:message code="nssUser.max.label" default="Max" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: nssUserInstance, field: 'max', 'errors')}">
                                    <g:textField name="max" value="${fieldValue(bean: nssUserInstance, field: 'max')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="min"><g:message code="nssUser.min.label" default="Min" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: nssUserInstance, field: 'min', 'errors')}">
                                    <g:textField name="min" value="${fieldValue(bean: nssUserInstance, field: 'min')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="phone"><g:message code="nssUser.phone.label" default="Phone" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: nssUserInstance, field: 'phone', 'errors')}">
                                    <g:textField name="phone" value="${nssUserInstance?.phone}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="uid"><g:message code="nssUser.uid.label" default="Uid" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: nssUserInstance, field: 'uid', 'errors')}">
                                    <g:textField name="uid" value="${fieldValue(bean: nssUserInstance, field: 'uid')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="userName"><g:message code="nssUser.userName.label" default="User Name" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: nssUserInstance, field: 'userName', 'errors')}">
                                    <g:textField name="userName" value="${nssUserInstance?.userName}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="warn"><g:message code="nssUser.warn.label" default="Warn" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: nssUserInstance, field: 'warn', 'errors')}">
                                    <g:textField name="warn" value="${fieldValue(bean: nssUserInstance, field: 'warn')}" />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
